import java.util.HashMap;
import java.util.Map;

/**
 * @author fun.pengzh
 * @class PACKAGE_NAME.UserDAO
 * @desc
 * @since 2021-10-16
 */
public class UserDAO {

    private static Map<String, String> hashMap = new HashMap<>();

    public void initDataMethod() {
        System.out.println("执行：init-method");
        hashMap.put("10001", "阿飞");
        hashMap.put("10002", "阿德");
        hashMap.put("10003", "阿毛");
    }

    public void destroyDataMethod() {
        System.out.println("执行：destroy-method");
        hashMap.clear();
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }


}
